package com.abc.liuyan.model;

import io.swagger.annotations.ApiModel;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 *
 * @author huangxin <3203317@qq.com>
 *
 */
@ApiModel(value = "配置")
@Table(name = "s_cfg")
public class Cfg implements Serializable {

	private static final long serialVersionUID = 5685064131282442887L;

	@Id
	@Column(name = "id")
	private String id;

	@Column(name = "s_value")
	private String s_value;

	@Column(name = "s_name")
	private String s_name;

	@Column(name = "s_category")
	private String s_category; // 分类

	@Column(name = "data_type")
	private String data_type; // 数据类型

	@JSONField(name = "create_time", format = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@Column(name = "create_time")
	private Date create_time;

	public String getData_type() {
		return data_type;
	}

	public void setData_type(String data_type) {
		this.data_type = data_type;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getS_value() {
		return s_value;
	}

	public void setS_value(String s_value) {
		this.s_value = s_value;
	}

	public String getS_name() {
		return s_name;
	}

	public void setS_name(String s_name) {
		this.s_name = s_name;
	}

	public String getS_category() {
		return s_category;
	}

	public void setS_category(String s_category) {
		this.s_category = s_category;
	}

	public Date getCreate_time() {
		return create_time;
	}

	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}

	@Override
	public String toString() {
		return "Cfg [id=" + id + ", s_value=" + s_value + ", s_name=" + s_name
				+ ", s_category=" + s_category + ", data_type=" + data_type
				+ ", create_time=" + create_time + "]";
	}

}
